<script setup lang="ts">
import * as echarts from 'echarts';
import { onMounted, reactive, ref } from 'vue';
let main = ref()

let option = reactive (
  {
    title: {
      text: '渡傑 coming'
    },
    tooltip: {},
    legend: {
      data: ['销量']
    },
    xAxis: {
      data: []
    },
    yAxis: {},
    series: []
  }
)
const draw = ()=>{
  var myChart = echarts.init(main.value);
  myChart.setOption(option);
  console.log("myChart=>",myChart);
  
}
onMounted(() => {
    draw()
})

</script>

<template>
  <div ref="main" style="width: 600px;height:400px;">
    123123
  </div>
</template>

<style scoped></style>
